/**
 * Created by liu on 2018/3/27.
 */

import axios from '../../../api/api';
import { post } from '../../../api/myAxios';
import { getListData } from  '../../../utils/page';

export const getCommunityPosts = (_this) => {
    getListData(communityPosts, _this);
};

export const communityPosts = params => {
    return axios.get(`/api/community-post/list`, params)
        .then(communityInfos => {
            return communityInfos.data
        })
};
